﻿@model Leffaetsin.Models.Movie

@{
    ViewBag.Title = Model.Title + " | Leffaetsin";
}

<div data-role="header">
    @Html.ActionLink("Takaisin", "Movies", "Home", new { area = Model.AreaName }, 
     new Dictionary<string, object> { 
       { "data-role", "button" }, 
       { "data-icon", "arrow-l" } 
                  })
    <h1>@ViewBag.Title</h1>
</div>

<div data-role="content">
    <h2>@Model.Title</h2>
    <p>
        <strong>@Model.OriginalTitle</strong>, <strong>@Model.ProductionYear</strong>
    </p>
    <p>
        <strong>IMDB Rating: @Model.Rating</strong>
    </p>

    <img src="@Model.LargePicUrl" class="mainImage"/>
    <ul data-role="listview" data-inset="true">
        <li data-role="list-divider">Esitysajat</li>
        @foreach (var showTime in Model.ShowTimes) {
            <li>@showTime</li>
        }
    </ul>

    <ul data-role="listview" data-inset="true">
        <li data-role="list-divider">Genres</li>
        @foreach (var genre in @Model.Genres) {
            <li>@genre</li>
        }
    </ul>

    <h3>Linkit</h3>
    <ul data-role="listview" data-inset="true">
        <li><a href="@Model.ImdbLink">IMDB</a></li>    
        <li><a href="@Model.FinnkinoLink">Finnkino</a></li>    
    </ul>
    </div>